package com.ssm.dao;

import com.ssm.domain.Traveller;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface ITraveller {
    @Select("select t.*\n" +
            "from order_traveller ot left join traveller t on t.id = ot.travellerId\n" +
            "where ot.orderId=#{orderId}")
    List<Traveller> findByOrdersId(String ordersId);
}
